Fix crashes in lisp_align_free in a build with GC_MCHECK.
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Mar 2014 16:46:36 +0000 (18:46 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Mar 2014 16:46:36 +0000 (18:46 +0200)
commit53c97bb424112ad5287974f81e0c26e2be662438
treea2327d5c3fbd0efb5cbf13ed85dd61a23733f6b4
parente3ec544d00b135112a1d72fe1ee5f71045259a34
Fix crashes in lisp_align_free in a build with GC_MCHECK.

 src/gmalloc.c (aligned_alloc): Fix adjustment of size of the
 allocated buffer due to alignment.
 (freehook): If the block to be freed was allocated by
 'aligned_alloc', find its real pointer before calling 'free'.
 (mabort) [emacs]: Call 'emacs_abort', not 'abort', to provide a
 backtrace.
src/ChangeLog
src/gmalloc.c